home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-04-08 | 4.1 KB | 126 lines |
- # File: %AppFilename%.MAMake
- # Target: %AppFilename%
- # Created %date% %time% by AppMaker
-
- # MABuild creates a .make file which
- # compiles source files as needed
- # runs Rez to create .rsrc files from .r files of the same name
- # links the object files
- # runs Rez to create resources and to copy the linked CODE
- # its output is a temporary file
- # runs PostRez to convert cmnu resources into MENU/mntb resources
- # PostRez also sets the applications type and creator
- # from its BNDL resource
- # moves the built application from the temporary folder
- # to the specified output folder.
- # optionally, runs the built application
-
- # MABuild uses this file, and the file "Build Rules and Dependencies",
- # and many MPW variables set by {MacApp}Startup as input.
-
-
- #---------------------------------------------------------------------------------------------------
- # List here the Application's Name and Creator Type
-
- AppName = %AppFilename%
- Creator = 'XXXX'
-
-
- #---------------------------------------------------------------------------------------------------
- # List here the MacApp building blocks that your application uses
- # if you want to be dependent on less than the full set.
-
- BuildingBlockIntf = ∂
- "{MACInterfaces}UPrinting.cp" ∂
- "{MACInterfaces}UTEView.cp" ∂
- "{MACInterfaces}UGridView.cp" ∂
- "{MACInterfaces}UDialog.cp"
-
-
- #---------------------------------------------------------------------------------------------------
- # List any additional interfaces that your application is dependent on
-
- OtherInterfaces = ∂
- "{SrcApp}U%appname%Doc.h" ∂
- "{SrcApp}ResourceDefs.h"
-
-
- #---------------------------------------------------------------------------------------------------
- # Express any additional dependencies for separate compilations.
- # Include dependencies for the MacApp and Building block interfaces
- # if you are dependent on them
-
- # generate additional dependencies
-
- "{ObjApp}M%AppName%.cp.o"% %ƒ "{SrcApp}M%AppName%.cp" ∂
- "{SrcApp}U%AppName%.h" ∂
- {CPlusLoad}
-
- "{ObjApp}U%AppName%.cp.o"% %ƒ "{SrcApp}U%AppName%.cp" ∂
- "{SrcApp}U%AppName%.h" ∂
- "{SrcApp}U%AppName%Doc.h" ∂
- %for each dialog gen dependency%
- "{SrcApp}ResourceDefs.h" ∂
- {CPlusLoad}
-
- "{ObjApp}U%AppName%Doc.cp.o" ƒ "{SrcApp}U%AppName%Doc.cp" ∂
- "{SrcApp}U%AppName%Doc.h" ∂
- %for each window gen dependency%
- "{SrcApp}ResourceDefs.h" ∂
- {CPlusLoad}
- %for each window gen makeDepend%
-
- %for each dialog gen makeDepend%
-
- "{ObjApp}UAMLibraryM.cp.o"% %ƒ "{MACIncludes}UAMLibraryM.cp" ∂
- "{MACIncludes}UAMLibraryM.h" ∂
- {CPlusLoad}
- {MAEcho} {EchoOptions} "Compiling: UAMLibraryM.cp"
- {MACPlus} ∂
- {CPlusOptions} ∂
- {OtherCPlusOptions} ∂
- {CPlusLoadOptions} ∂
- -i "{SrcApp}" ∂
- -i "{MACIncludes}" ∂
- -o "{ObjApp}UAMLibraryM.cp.o" ∂
- "{MACIncludes}"UAMLibraryM.cp
-
-
- #---------------------------------------------------------------------------------------------------
- # Name any other object files to link in
-
- OtherLinkFiles = ∂
- "{ObjApp}UAMLibraryM.cp.o" ∂
- %for each dialog gen linkFile%
- %for each window gen linkFile%
- "{ObjApp}U%appname%Doc.cp.o"
-
-
- #---------------------------------------------------------------------------------------------------
- # Specify any -sn (segment alias) linker options that you want included.
-
- OtherSegMappings = ∂
- -sn XxxxInit=GInit
-
-
- #---------------------------------------------------------------------------------------------------
- # List Rez files other than AppName.r that need to Rez'ed with the application
-
- OtherRezFiles =
-
-
- #---------------------------------------------------------------------------------------------------
- # List resource files that a Rez file includes if you want to include
- # more or less than the standard set
-
- OtherRsrcFiles = ∂
- "{SrcApp}%AppFilename%"
-
-
- #---------------------------------------------------------------------------------------------------
- # "dummy up" MAPostRez to not run PostRez. Since AppMaker already created
- # MENU/mntb resources, running PostRez is unnecessary (and harmful because
- # it deletes the existing mntb resource).
-
- MAPostRez = SetFile -t APPL -c {Creator}
-